/**
  EG4Sim project, Anyang Normal University && IMP-CAS
  \class EG4Det
  \brief an ABC for all ETF-G4 detectors
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2023-11-08
  \date 2023-11-08 last modified
  \copyright Copyright (c) 2023-2024 IMP-CAS with LGPLv3 LICENSE
*/

#include "EG4Det.h"
#include "G4LogicalVolume.hh"
#include "G4VisAttributes.hh"
#include "G4Color.hh"

EG4Det::EG4Det() : fLV(nullptr){}
EG4Det::~EG4Det(){}

void EG4Det::SetColor(double r, double g, double b){
  fLV->SetVisAttributes(new G4VisAttributes(G4Color(r, g, b)));
} // end member function SetColor
